#ifndef QRectangle_h
#define QRectangle_h

class QRectangle
{
public:
	QRectangle(){}
	QRectangle(float x, float y, float width, float height)
	{
		_x=x;
		_y=y;
		_width = width;
		_height = height;
	}
	QRectangle(const QRectangle &rect)
	{
		_x=rect._x;
		_y=rect._y;
		_width=rect._width;
		_height=rect._height;
	}
	~QRectangle(){};

	float GetX();
	float GetY();
	float GetX2();
	float GetY2();
	float GetWidth();
	float GetHeight();
	bool Intersect(QRectangle a);
private:
	float _x, _y,_width,_height;
};

#endif